package com.joysuch.wwyt.bp.service.impl;

import cn.zlg.common.util.CollectionUtils;
import com.joysuch.wwyt.bp.entity.BpExamStatistics;
import com.joysuch.wwyt.bp.mapper.BpExamStatisticsMapper;
import com.joysuch.wwyt.bp.service.BpExamStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author JamesZY
 * @date 2021/4/27
 */
@Service
public class BpExamStatisticsServiceImpl implements BpExamStatisticsService {
    @Autowired
    private BpExamStatisticsMapper bpExamStatisticsMapper;

    @Override
    public List<BpExamStatistics> findAll() {
        List<BpExamStatistics> bpExamStatistics = bpExamStatisticsMapper.selectList(null);
        return CollectionUtils.isEmpty(bpExamStatistics) ? null : bpExamStatistics;
    }
}
